package com.xc.hotelmgr.datahandlermt.service.mybatis.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datahandlermt.mapper.DtUpHtlMapper;
import com.xc.hotelmgr.datahandlermt.pojo.mybatis.DtUpHtl;
import com.xc.hotelmgr.datahandlermt.service.mybatis.DtUpHtlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DtUpHtlServiceImpl extends ServiceImpl<DtUpHtlMapper, DtUpHtl> implements DtUpHtlService {

    @Autowired
    private DtUpHtlMapper dtUpHtlMapper;


    @Override
    public List<DtUpHtl> listAll() {
        return dtUpHtlMapper.listAll();
    }

    @Override
    public DtUpHtl getById(Integer id) {
        return dtUpHtlMapper.getById(id);
    }

    @Override
    public int insert(DtUpHtl dtUpHtl) {
        return dtUpHtlMapper.insert(dtUpHtl);
    }

    @Override
    public int insertIgnoreNull(DtUpHtl dtUpHtl) {
        return dtUpHtlMapper.insertIgnoreNull(dtUpHtl);
    }

    @Override
    public int update(DtUpHtl dtUpHtl) {
        return dtUpHtlMapper.update(dtUpHtl);
    }

    @Override
    public int updateIgnoreNull(DtUpHtl dtUpHtl) {
        return dtUpHtlMapper.updateIgnoreNull(dtUpHtl);
    }

    @Override
    public int updateIgnoreNullByOther(DtUpHtl dtUpHtl) {
        return 0;
    }

    @Override
    public int delete(DtUpHtl dtUpHtl) {
        return dtUpHtlMapper.delete(dtUpHtl);
    }

    @Override
    public List<Long> getByStoreId(int storeId) {
        return dtUpHtlMapper.getByStoreId(storeId);
    }

    @Override
    public List<Long> getByAreaId(Integer storeId, Long distId) {
        return dtUpHtlMapper.getByAreaId(storeId,distId);
    }

    @Override
    public List<Long> getByGroupId(Integer storeId, Long groupId) {
        return dtUpHtlMapper.getByGroupId(storeId,groupId);
    }
}
